package com.qkl.xiatang.app.service.impl;


import lombok.Data;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;



@Slf4j
@Service
public class TestService {




    @Data
    private static class TaskWebDTO{
        private  String taskType;
        private  String taskSubType;

        public TaskWebDTO(String taskType,String taskSubType ){
            this.taskType = taskType;
            this.taskSubType = taskSubType;
        }

        public boolean feedTask(){
            return "1".equals(taskType);
        }

        public boolean zooTask(){
            return "2".equals(taskType);
        }

        public boolean weighFeed(){
            return "1".equals(taskSubType);
        }

        public boolean feedFeed(){
            return "2".equals(taskSubType);
        }

        public boolean checkFeed(){
            return "3".equals(taskSubType);
        }

    }


}
